// 基础路径 注意发布之前要先修改这里
let publicPath = "/";

module.exports = {
  devServer: {
    disableHostCheck: true,
    proxy: {
      "/api": {
        target: "http://127.0.0.1:5000",
        changeOrigin: true,
        pathRequiresRewrite: {
          "^/api": "",
        },
      },
    },
    publicPath, // 和 publicPath 保持一致
    inline: true,
    hot: true,
    liveReload: true,
  },
};
